using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Administration;

using Mystery.SharePoint;

namespace Magical.Collaboration.Features.Farm
{
    /// <summary>
    /// This class handles events raised during feature activation, deactivation, installation, uninstallation, and upgrade.
    /// </summary>
    /// <remarks>
    /// The GUID attached to this class may be used during packaging and should not be modified.
    /// </remarks>

    [Guid("45227986-e8de-443d-8d28-0cdab2ef0e0b")]
    public class FarmEventReceiver : SPFeatureReceiver
    {
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            Logger.L.AddInitializeMessage();

            // make sure that we register the quota templates we need
            SPWebService.ContentService.QuotaTemplates.Register(Resources.QuotaTemplate_Project_Name, 1500, 1000);
            SPWebService.ContentService.QuotaTemplates.Register(Resources.QuotaTemplate_Department_Name, 4000, 3000);
        }
    }
}
